function hair(){
	var userid = $("#userid").val()
	var obj=document.getElementsByName('menuid'); //选择所有name="'test'"的对象，返回数组 
	var menuids =[];
	$('input[name="menuid"]:checked').each(function(){
		menuids.push($(this).val());
	}); 
	$.ajax({
		url:"MenuServlet?action=fpMenu",
		type:"post",
		data:{"menuids":menuids,"userid":userid},
		dataType:"json",
		traditional:true,
		success:function(data){
			if(data.status == 1){
				alert(data.message);
			}else{
				alert("系统异常");
			}
		}
	})
}